package com.yanqu.road.server.channelserver.manager.activity.entername.enums;

import com.yanqu.road.entity.enums.eGamePlayerEventType;

public enum eEnterNameRewardTypes {

    /**
     * 牧场点兵最高积分奖励
     */
    CrossPastureUserReward(eGamePlayerEventType.ChannelPastureMaxScoreRank.getValue(), false),

    /**
     * 牧场点兵勋章对阵奖励
     */
    CrossPastureGroupReward(eGamePlayerEventType.EnterNameAreaFightRank.getValue(), true),

    /**
     * 瓦舍区域对决所有地区奖励
     */
//    WaShePkAllGroupFightRankReward(eGamePlayerEventType.WaShePkAllGroupFightRank.getValue(), true),

    /**
     * 瓦舍区域对决个人榜单奖励
     */
    WaShePkUserFightRankReward(eGamePlayerEventType.WaShePkUserFightRank.getValue(), false),

    /**
     * 瓦舍区域对决地区榜单（1v1）奖励
     */
    WaShePkGroupFightRankReward(eGamePlayerEventType.WaShePkGroupFightRank.getValue(), true),

    ;

    /**
     * conditionType
     */
    int type;

    /**
     * 是否阵营奖励
     */
    boolean groupReward;

    eEnterNameRewardTypes(int type, boolean groupReward) {
        this.type = type;
        this.groupReward = groupReward;
    }

    public int getType() {
        return type;
    }

    public boolean isGroupReward() {
        return groupReward;
    }

    public static eEnterNameRewardTypes find(int type){
        for (eEnterNameRewardTypes value : eEnterNameRewardTypes.values()) {
            if(value.getType() == type){
                return value;
            }
        }
        return null;
    }
}
